package ch.lue.tvsedit.model;

import java.util.HashMap;
import java.util.Map;

import org.xml.sax.Attributes;

public class Channel 
{
	private String name;
	
	
	private Map<String, String> mappingDetails = new HashMap<String, String>();
	private Map<String, String> tuningDetails =  new HashMap<String, String>();
	
	public Channel(String name, Attributes att) 
	{
		this.name = name;
	}
	
	public void setTuningDetails(Attributes att) 
	{
		for(int i =0; i< att.getLength(); i++)
		{
			tuningDetails.put(att.getLocalName(i), att.getValue(i));
		}
	}
	
	public void setMappingDetails(Attributes att)
	{
	}
	
	public String getName() {
		return name;
	}

	public String getIdChannel() 
	{
		return tuningDetails.get("IdChannel");
	}
}
